﻿using System.ComponentModel.DataAnnotations;

namespace Vaccine.API.Models
{
    /// <summary>
    /// 疫苗信息更新输入模型
    /// </summary>
    public class UpdateVaccineInfoInput
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Required(ErrorMessage = "疫苗Id为必填")]
        public Guid Id { get; set; }

        /// <summary>
        /// 疫苗名称
        /// </summary>
        [MaxLength(32, ErrorMessage = "疫苗名称过长")]
        public string? Name { get; set; }

        /// <summary>
        /// 疫苗描述
        /// </summary>
        [MaxLength(256, ErrorMessage = "疫苗描述信息过长")]
        public string? Description { get; set; }

        /// <summary>
        /// 疫苗数量
        /// </summary>
        public int Quantity { get; set; }
    }
}
